package co.edu.unal.scrum.server.model;

import co.edu.unal.scrum.shared.model.TaskStatus;

import com.google.code.twig.annotation.Id;
import com.google.code.twig.annotation.Parent;

@SuppressWarnings("serial")
public class SprintItem implements java.io.Serializable {
	@Id
	private int id;
	@Parent
	private SprintBacklog sprintBacklog;
	private TaskStatus status;
	private UserDetail userDetail;
	private String name;
	private String description;
	private Integer storyPoints;
	private String comments;
	private Integer estHrs;
	private Integer actHrs;
	private ProductBacklogItem userHistory;

	public SprintItem() {
	}

	public SprintItem(int id, SprintBacklog sprintBacklog,
			UserDetail userDetail, String name, String description,
			Integer storyPoints, String comments, Integer estHrs,
			Integer actHrs, ProductBacklogItem userHistory) {
		super();
		this.id = id;
		this.sprintBacklog = sprintBacklog;
		this.userDetail = userDetail;
		this.name = name;
		this.description = description;
		this.storyPoints = storyPoints;
		this.comments = comments;
		this.estHrs = estHrs;
		this.actHrs = actHrs;
		this.userHistory = userHistory;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public SprintBacklog getSprintBacklog() {
		return sprintBacklog;
	}

	public void setSprintBacklog(SprintBacklog sprintBacklog) {
		this.sprintBacklog = sprintBacklog;
	}

	public TaskStatus getStatus() {
		return status;
	}

	public void setStatus(TaskStatus status) {
		this.status = status;
	}

	public UserDetail getUserDetail() {
		return userDetail;
	}

	public void setUserDetail(UserDetail userDetail) {
		this.userDetail = userDetail;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getStoryPoints() {
		return storyPoints;
	}

	public void setStoryPoints(Integer storyPoints) {
		this.storyPoints = storyPoints;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public Integer getEstHrs() {
		return estHrs;
	}

	public void setEstHrs(Integer estHrs) {
		this.estHrs = estHrs;
	}

	public Integer getActHrs() {
		return actHrs;
	}

	public void setActHrs(Integer actHrs) {
		this.actHrs = actHrs;
	}

	public ProductBacklogItem getUserHistory() {
		return userHistory;
	}

	public void setUserHistory(ProductBacklogItem userHistory) {
		this.userHistory = userHistory;
	}

}
